package domain.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import domain.web.dao.StoreDao;
import domain.web.model.Store;
import domain.web.model.StoreView;
import domain.web.service.StoreService;

@Service("storeService")
public class StoreServiceImpl implements StoreService {

	@Autowired
	private StoreDao storeDao;

	@Override
	public StoreView getView(long id) {
		return storeDao.getView(id);
	}
	
	@Override
	public List<Store> getAll() {
		return storeDao.getList();
	}

}
